#
# Recipe for rtlsdk

LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""

SRC_URI="file://rtlsdk-4.11.3.tar.gz"

TARGET_CFLAGS += "-Wno-unused-parameter -Wno-error=sign-compare -Wno-error=maybe-uninitialized "
BUILD_CFLAGS += "-Wno-unused-parameter -Wno-error=sign-compare -Wno-error=maybe-uninitialized "

BBCLASSEXTEND += "native"
FILES_${PN}-dev =""
do_install () {
    install -d ${D}${libdir}/
    install -m 0755 ${B}/librtlswitch.so ${D}${libdir}/
    install -d ${D}${includedir}/
    cp -rf ${B}/include/* ${D}${includedir}/
}

RPROVIDES_${PN} += " librtlswitch"

FILES_${PN} = " \
		${libdir}/librtlswitch.so \
    ${includedir} \
    ${includedir}/* \
    ${includedir}/asicdrv \
    ${includedir}/asicdrv/* \
    ${includedir}/asicdrv/basic \
    ${includedir}/asicdrv/basic/* \
"